home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Plus 2004 #9
/
Amiga Plus CD - 2004 - No. 09.iso
/
amigaplus
/
tools
/
amigaos4_only
/
ifxlite
/
imagefx3
/
rexx
/
autofx
/
eot_ripple.ifx.pre
< prev
next >
Wrap
Text File
|
2004-08-03
|
1KB
|
46 lines
/*
* EOT_Ripple.ifx.pre
* Written by Thomas Krehbiel
*
* Simple wave distort effect.
*
* Inputs:
* Word(Arg(1),1) = Sequence number (?)
* Word(Arg(1),2) = Total number of frames (N)
*
* Returns:
* 0 if successful, non-zero on failure
*
*/
OPTIONS RESULTS
base = 'Autofx_Ripple_'
x1 = GETCLIP(base||'x1')
y1 = GETCLIP(base||'y1')
size = GETCLIP(base||'size')
ampl = GETCLIP(base||'ampl')
IF x1 = "" THEN x1 = -1
IF y1 = "" THEN y1 = -1
IF size = "" THEN size = 20
IF ampl = "" THEN ampl = 20
Gadget.1 = 'INTEGER 200 5 50 14 "Center of Ripple X:"' x1
Gadget.2 = 'INTEGER 300 5 50 14 "Y:"' y1
Gadget.3 = 'TEXT 215 20 1 1 "(-1,-1 selects the exact center of the image.)" JU=2'
Gadget.4 = 'INTEGER 200 32 50 14 "Amplitude:"' ampl
Gadget.5 = 'INTEGER 200 47 50 14 "Wavelength:"' size
Gadget.6 = 'END'
NewComplexRequest '"Ripple"' Gadget 430 67
IF rc ~= 0 THEN EXIT rc
CALL SETCLIP(base||'x1', result.1)
CALL SETCLIP(base||'y1', result.2)
CALL SETCLIP(base||'ampl', result.4)
CALL SETCLIP(base||'size', result.5)
EXIT